<div id="search-box">
<form method="get" action="./">
<input type="text" name="w" id="search-item" />
<input type="submit" value="rock it;)" />
</form>
</div>
<div id="search-res">
<ul>
{% for book in books.object_list %}
  <li><a href="{{ book.pk }}/">{{ book.title }}</a> - 
      <span>Available: {{ book.bookprofile.num_available }}/{{ book.bookprofile.num_total }}</span> - 
	  <a class="reserving-button" href="{{ book.pk }}/?r=1">Reserving [{{ book.bookprofile.num_reserving }}]</a>
  </li>
{% endfor %}
</ul>
<script>

</script>
</div>
<div id="pagination">
<p class="step-links">
{% if books.has_previous %}
  <a href="?p={{ books.previous_page_number }}">Previous</a>
{% endif %}
  <span class="current-page">Page {{ books.number }} of {{ contacts.paginator.num_pages }}.</span>
{% if books.has_next %}
  <a href="?p={{ books.next_page_number }}">Next</a>
{% endif %}
</p>
</div>
